package cn.nexd.app.collector.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.webkit.WebView;

import cn.nexd.app.collector.R;
import cn.nexd.app.collector.util.UMengUtil;


/**
 * Created by wangxu on 16/10/14.
 */

public class GuideBookActivity extends AppCompatActivity {


    WebView guideBook;
    Toolbar titleBar;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.guide_book);

        titleBar = (Toolbar) findViewById(R.id.guide_book_title_bar);

        setSupportActionBar(titleBar);
        getSupportActionBar().setHomeButtonEnabled(false);

        getSupportActionBar().setDisplayShowTitleEnabled(false);

        guideBook = (WebView) findViewById(R.id.guide_book);
        guideBook.loadUrl("file:///android_asset/guide_book.html");
    }


    @Override
    protected void onResume() {
        super.onResume();
        UMengUtil.getInstance().onResume(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
        UMengUtil.getInstance().onPause(this);
    }

}
